package models;

import java.util.*;
import javax.persistence.*;

import play.db.ebean.*;
import play.data.format.*;
import play.data.validation.*;

import com.avaje.ebean.*;

/**
 * Route entity managed by Ebean
 */
@Entity  
@Table(name="routes")
public class Route extends Model {

    @Id
    public String route_id;
    
    public String agency_id;
    
    @Constraints.Required
    public String route_short_name;
    
    @Constraints.Required
    public String route_long_name;
    
    public String route_desc;
    
    @Constraints.Required
    public String route_type;
    
    public String route_url;
    
    public String route_color;
    
    public String route_text_color;
    
    public static Model.Finder<String,Route> find = new Model.Finder(String.class, Route.class);
    
    /**
     * Retrieve all Routes.
     */
    public static List<Route> findAll() {
        return find.all();
    }

}

